<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>项目详情</title>
    <link rel="stylesheet" href="../assets/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../js/formSelects/formSelects-v4.css" media="all">
    <link rel="stylesheet" href="../css/font/iconfont.css" media="all">
    <link rel="stylesheet" href="../js/formSelects/formSelects-v4.css">
    <style>
        .other_name {
            display: inline-block;
            margin-right: 10px;
            cursor: pointer;
        }
        .other_name>i {
            margin-left: 5px;
        }
        .other_name>i:hover {
            color: #FFFFFF;
        }

        .layui-form-label{
            width:140px;
        }
        .layui-input-block{
            margin-left: 170px;
        }
        a{
            color:#fff;
        }
        a:hover {
            color: #00c0ef;
        }
        legend{
            color: #00c0ef
        }
    </style>
</head>
<body>


<div style="margin-top: 40px; margin-right: 30px;">
    <form class="layui-form" action=""  lay-filter="dataForm">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 5px;">
            <legend>项目信息</legend>
        </fieldset>
        <div class="layui-form-item">
            <label class="layui-form-label">项目名称</label>
            <div class="layui-input-block">
                <input type="text" name="projectname" id="projectname" readonly class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">项目地址</label>
            <div class="layui-input-block">
                <input type="text" name="projectadress" id="projectadress"  readonly class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">项目状态</label>
            <div class="layui-input-block">
                <input type="text" name="projectstatus" id="projectstatus"  readonly class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">项目类型</label>
            <div class="layui-input-block">
                <input type="text" name="projecttype" id="projecttype"  readonly class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">项目负责人</label>
            <div class="layui-input-block">
                <input type="text" name="projectperson" id="projectperson" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red">*</span>项目负责人电话</label>
            <div class="layui-input-block">
                <input type="text" name="projectpersonphone" id="projectpersonphone" readonly class="layui-input">
            </div>
        </div>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 5px;">
            <legend>施工单位信息</legend>
        </fieldset>
        <div class="layui-form-item">
            <label class="layui-form-label">施工单位名称</label>
            <div class="layui-input-block">
                <input type="text" name="companyname" id="companyname" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">施工单位负责人</label>
            <div class="layui-input-block">
                <input type="text" name="company_user" id="company_user" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">施工单位负责人手机</label>
            <div class="layui-input-block">
                <input type="text" name="company_user_phone" id="company_user_phone" readonly class="layui-input">
            </div>
        </div>
<!--        <div class="layui-form-item" id="divSubmit">-->
<!--            <div class="layui-input-block"  style="text-align: center;">-->
<!--                <button id="btnSub" class="layui-btn" id="back">返回</button>-->
<!--            </div>-->
<!--        </div>-->
    </form>
</div>

</body>
<script src="../assets/layui/layui.js"></script>
<script src="../js/common.js"></script>
<script>
    layui.config({
        base: '../js/'
    });
    var $;

    layui.use(['jquery','form','common'], function () {
        var form = layui.form,
                layer = layui.layer,
                common = layui.common;
        $ = layui.jquery;

        var projectId=common.getUrlParam("id");
        $.ajax({
                url: "../project/info",
                dataType: "json",
                data: { projectId: projectId },
                success: function (rtn) {
                    if (rtn && rtn.code===0) {
                        var data = rtn.data;
                        $.each(data,function (i,t) {
                           $("#"+i).val(t);
                        })
                    }
                }
            });

    })



</script>
</html>